package com.fili.gui.components.date_time;

import javax.swing.*;
import java.awt.*;

/**
 * Created by Claudiu-Florin FILIMON
 * Date: Oct 30, 2006
 * Time: 9:23:39 PM
 */
public class DayLabel extends JComponent
{
    private String text;
    private boolean today;
    private boolean red;


    public DayLabel(String text, boolean today, boolean red)
    {
        this.text = text;
        this.today = today;
        this.red = red;
    }


    protected void paintComponent(Graphics g)
    {
        if (red)
            g.setColor(Color.gray);
        else
            g.setColor(Color.lightGray);

        g.fillRect(0,0,getWidth(),getHeight());

        g.setColor(Color.black);
        g.drawString(text, 0,0);
    }
}
